home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Eagles Nest BBS 8
/
Eagles_Nest_Mac_Collection_Disc_8.TOAST
/
Developer Tools⁄Additions
/
InsideBa1994
/
InsideBasic-94
/
IB 94
/
Standard Files Tricks
/
Standard Files Tricks.BAS
next >
Wrap
BASIC Source File
|
1994-01-25
|
945b
|
39 lines
'---------------------------------
' Standard Files Tricks
' by Ross W. Lambert
' January, 1993 Inside Basic
' Copyright © 1993
' All Source Code Rights Reserved
'---------------------------------
' The gussied up Standard Files dialogs are in the resource fork.
RESOURCES "Standard Files Tricks.Res"
' Let's look at our custom resources...
t$ = "Some custom Standard Files dialogs!"
CALL PARAMTEXT (t$,"","","")
fName$ = FILES$(_fOpen,"",,vRef)
fName$ = FILES$(_fSave,"","Test File",vRef)
' Now change a button title...
' Incidentally, this last technique does NOT work with
' Norton Utilities' Directory Assistance - it changes the
' button titles on its own.
t$ = "Select a file to delete."
CALL PARAMTEXT (t$,"","","")
LONG IF SYSTEM(_sysVers) => 700
dlog = _SFgetDialogID
XELSE
dlog = _getDlgID
END IF
h& = FN GETRESOURCE(_"DITL",dlog)
LONG IF h&
t$ = "Delete"
BLOCKMOVE @t$,[h&]+15,7
END IF
fName$ = FILES$(_fOpen,"",,vRef)